/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package model;

import java.io.Serializable;
import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;

/**
 *
 * @author Marvin Hiemstra
 */
@Embeddable
public class PaymentPK implements Serializable {

//    @ManyToOne
//    private Student student;
//    @ManyToOne
//    private Course course;
    @ManyToOne
    private String payDate;
    @ManyToOne
    private String cName;
    @ManyToOne
    private String uCode;

    public PaymentPK(String payDate, String cName, String uCode) {
        this.payDate = payDate;
        this.cName = cName;
        this.uCode = uCode;
    }

    
    public String getPayDate() {
        return payDate;
    }

    public void setPayDate(String payDate) {
        this.payDate = payDate;
    }

    public String getcName() {
        return cName;
    }
    public void setcName(String cName) {
        this.cName = cName;
    }

    public String getuCode() {
        return uCode;
    }

    public void setuCode(String uCode) {
        this.uCode = uCode;
    }
    

    public PaymentPK() {
    }

//    public Course getCourse() {
//        return course;
//    }
//
//    public void setCourse(Course course) {
//        this.course = course;
//    }
//
//    public String getPayDate() {
//        return payDate;
//    }
//
//    public void setPayDate(String payDate) {
//        this.payDate = payDate;
//    }
//
//    public Student getStudent() {
//        return student;
//    }
//
//    public void setStudent(Student student) {
//        this.student = student;
//    }

//    public boolean equals(Object obj) {
//        if (obj == this) {
//            return true;
//        }
//        if (!(obj instanceof PaymentPK)) {
//            return false;
//        }
//        if (obj == null) {
//            return false;
//        }
//        PaymentPK pk = (PaymentPK) obj;
//        return pk.course == course && pk.payDate.equals(payDate) && pk.student == student;
//    }
}